<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
		<script src="echarts/echarts.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="main" style="height: 500px;"></div>
	</body>
	<script type="text/javascript">
		new Vue({
			el: "#main",
			data: {

			},
			mounted() {
				var chartDom = document.getElementById('main');
				var myChart = echarts.init(chartDom);
				var option;

				option = {
					title: {
						text: '各部门工作完成情况单位%',
						
						left: 'center'
					},
					xAxis: {
						type: 'category',
						data: ['人事部', '研发部', '产品部', '测试部', '市场部', '营销部', '销售部']
					},
					yAxis: {
						type: 'value'
					},
					series: [{
						data: [50, 40, 60, 80, 70, 100, 100],
						type: 'bar',
						showBackground: true,
						backgroundStyle: {
							color: 'rgba(180, 180, 180, 0.2)'
						}
					}]
				};

				option && myChart.setOption(option);

			}
		})
	</script>
</html>
